package com.haojiang.mh.remote.widget

import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.RelativeLayout
import com.haojiang.mh.R


class AlarmItemNewView : RelativeLayout {

    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    )

    var code: String = ""

    init {
        View.inflate(context, R.layout.item_alarm_new, this)
    }

//    fun setData(data: HomeMenuItem) {
//        if(isFocus) {
//            ivIcon.setImageResource(data.imageReroucePress)
//            ivLIne.visibility = View.VISIBLE
//        }else {
//            ivIcon.setImageResource(data.imageRerouceNorm)
//            ivLIne.visibility = View.INVISIBLE
//        }
//    }

}